var formatters = {};


formatters.categoryIdFormat = function(value){
	if (!value) 
		return "";
	
	for (i in config.models.categories)
	{
		if (value == config.models.categories[i].id)
			return config.models.categories[i].label;
	}
	return value;
}

formatters.currencyFormat = function(value){
	if (!value) 
		return "$0";
	
	return "$" + value;
}

formatters.mustHaveFormat = function(value) {
	if (!value)
		return "Optional";
	
	if (value == 1  || value == "1" || value == "true" || value == true)
	{
		return "Must Have";
	} else {
		return "Optional";
	}
}

var id = {
		"id": "com.xivix.christmaslist",
		"version": "1.0.0",
		"vendor": "xivix.net",
		"type": "web",
		"main": "index.html",
		"title": "Santa's Helper",
		"icon": "icon.png",
		"smallicon": "smallicon.png",
		"copyright": "&copy; Copyright 2010 Xivix Software Solutions",
		"support": {
	    	"url": "http://www.xivix.net",
	    	"email": {
	        	"address": "support@xivix.net",
	        	"subject": "Santa's Helper App"
	        	},
			"resources": [
	        {
	        	"type": "web",
	        	"label": "Video Walkthrough",
	        	"url": "http://forums.precentral.net/web-os-development/198781-beyond-hello-world-tutorial.html#post1829022"
	        }
	        ]
		}
}